package com.oop.demo;

import java.util.Scanner;

/**
 * @author miao
 * @version 1.0
 * @date 2025/4/14 16:58
 * @description
 */
public class Test1 {
    public static void main(String[] args) {
        //键盘录入一个字符串
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串：");
        String str = sc.nextLine();
        //将录入的字符串进行反转
        String str1 = new StringBuffer(str).reverse().toString();
        System.out.println(str1);
    }
}
